package com.atguigu.spzx.model.vo.common;

import lombok.Getter;

/**
 * 响应状态码枚举类
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(-1,"UNKNOWN ERROR"),
    PARAMS_ERROR(-100,"参数错误"),
    CODE_ERROR(-101,"验证码错误"),
    LOGIN_PASSWORD_ERROR(-103,"密码错误"),
    LOGIN_ACCOUNT_LOCKED_ERROR(-104,"账号被锁定"),
    LOGIN_TOKEN_ERROR(-105,"令牌为空"),
    LOGIN_STATUS_ERROR(-106,"登录状态失效"),
    FILE_UPLOAD_ERROR(-107,"文件上传失败"),
    FILE_EXPORT_ERROR(-110,"文件导出失败"),
    FILE_DELETE_ERROR(-108,"文件删除失败"),
    MENU_DELETE_ERROR(-109,"菜单删除失败"),
    MENU_TITLE_EXIST_ERROR(-201,"菜单标题已存在"),
    LOGIN_USERNAME_ERROR(-102,"账号不存在"),
    SEND_MSG_ERROR(-201,"短信发送失败"),
    PHONE_ERROR(-202,"手机号格式错误"),
    SEND_MSG_COUNT_ERROR(-203,"重复获取验证码"),
    SEND_MSG_LIMIT_ERROR(-204,"验证码发送异常"),
    MOBILE_EXISTS_ERROR(-205,"账号已被占用"),
    ;

    private Integer code;
    private String messsage;

    private ResultCodeEnum(Integer code,String messsage){
        this.code = code;
        this.messsage = messsage;
    }
}
